package com.wangzh.extend;

public class Student extends Parent{

    private String name;
    private Integer age;

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Integer getAge() {
        System.out.println("sudent");
        return age;
    }

    @Override
    public void setAge(Integer age) {
        this.age = age;
    }

//    public void info(){
//        super.setAge(12);
//        System.out.println(super.getAge()); //12
//        System.out.println(this.getAge());  //null
//    }


}
